package com.bdcom.autotest.ui.snp;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.util.Collection;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;

import javax.swing.Box;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.event.DocumentEvent;
import javax.swing.event.DocumentListener;
import javax.swing.text.BadLocationException;

import org.springframework.util.CollectionUtils;

public class SingleSnPanelForCard extends AbsPanel {
	
//	String[] testData = new String[] { "20067000150" , "20067000101" , "20067000116" , "20067000115" , "20067000117" , "20067000118" , "20067000120" , "20067000119" , "" , "" , "" }; 
	String[] testData = new String[] { ""}; 

	public SingleSnPanelForCard() {
		this.setBackground(Color.WHITE);
		this.setPreferredSize(new Dimension(0, 250));
		this.setLayout(new FlowLayout(FlowLayout.LEFT));
		Font font2 = new Font("Dialog", Font.PLAIN, 14);
		JLabel jLabel = new JLabel("SN:");
		jLabel.setFont(font2);
		JTextField tsn = new JTextField(18);
		tsn.setFont(font2);
		JLabel jLabel2 = new JLabel("类型");
		jLabel2.setFont(font2);
		JTextField ttype = new JTextField(13);
		ttype.setEditable(false);
		ttype.setFont(font2);
		this.add(jLabel);
		this.add(tsn);
		this.add(Box.createHorizontalStrut(10));
		this.add(jLabel2);
		this.add(ttype);
		numToSNField.put("1", tsn);
	}


	
	
}
